import { ReactComponent as StarIcon } from '@/shared/icons/star.svg';

export const renderStars = (amount: number) => {
  const res = [];
  for (let i = 1; i < 6; i += 1) {
    amount < i ? res.push(<StarIcon fill="#FFD662" />) : res.push(<StarIcon fill="#E1E1E1" />);
  }
  return res;
};
